﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLCF.Forms
{
    public partial class popupSetDescription : Form
    {
        private frmTableService frmTbS1 = null;
        private int billDetailID;
        public popupSetDescription()
        {
            InitializeComponent();
        }
        public popupSetDescription(frmTableService m_frmTableService, int m_billDetailID, string pName, string unit, string quantity, string price, string description)
        {
            InitializeComponent();
            frmTbS1 = m_frmTableService;
            billDetailID = m_billDetailID;
            lblProductName.Text = pName;
            lblQuantityUnit.Text = quantity+ " "+unit;
            lblPrice.Text = price;
            txtDescription.Text = description;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            frmTbS1.updateDescription(billDetailID,txtDescription.Text);
            this.Close();
        }
    }
}
